import shutil

from utils.file_io import listdir

if __name__ == "__main__":
    sound_root_path = "wav"
    srt_root_path = "srt"

    srt_file_list = []
    listdir(srt_root_path, srt_file_list)
    for srt in srt_file_list:
        srt_name = str(srt).split("/")[-1]
        shutil.move(sound_root_path+"/input/"+srt_name.replace(".srt",".wav"), sound_root_path+"/output/"+srt_name.replace(".srt",".wav"))